export default class LoadScene extends Phaser.Scene {

	constructor() {
		super('LoadScene')
		this.loadtext
		this.progress = 0
	}

	create() {
		this.loadtext = this.add.text(500,330,'加载中....' + this.progress + '%',{fontSize:'50px',padding:{top:5}})
	}

	update(time, delta) {
		this.loadtext.setText('加载中....' + this.progress.toFixed() + '%')
		this.progress += delta
		if(this.progress > 99){
			//LoginScene SelectRoleScene GameScene
			this.scene.start('GameScene')
		}
	}
}